﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
        x:Name="window" xmlns:System_Xml_Linq="clr-namespace:System.Xml.Linq;assembly=System.Xml.Linq" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="S7.Windows.Menu.ShowMenu"
        Closing="Window_Closing"
    Title="Menu" Height="600" Width="1635" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" Background="{DynamicResource BackgroundColor}" FontSize="18" Loaded="Window_Loaded" mc:Ignorable="d">
    <Grid>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.219*"/>
    		<ColumnDefinition Width="0.7*"/>
    	</Grid.ColumnDefinitions>
    	<Grid Margin="8">
    		<Label Content="Categories" HorizontalAlignment="Center" VerticalAlignment="Top"/>
    		<ListBox x:Name="lbCategories" SelectionChanged="lbCategories_SelectionChanged" Margin="0,23.94,0,-0.11"/>
    	</Grid>
    	<Grid Margin="8" Grid.Column="1">
    		<Grid Height="40" VerticalAlignment="Top">
    			<Label HorizontalAlignment="Center" Content="Menu Items" VerticalAlignment="Center"/>
    			<TextBox x:Name="tbSearch" HorizontalAlignment="Right" Margin="0,8" Width="200" TextWrapping="Wrap" FontSize="12" KeyUp="tbSearch_KeyUp" />
    			<Image HorizontalAlignment="Right" Width="24" Source="/S7;Component/Resources/Graphics/Search.png" Stretch="Uniform" Height="24"/>
    		</Grid>
    		<dg:DataGrid x:Name="lbMenuItems" AutoGenerateColumns="False" Margin="0,40,0,0">
				<dg:DataGrid.Columns>
    				<dg:DataGridTemplateColumn Header="Image">
    					<dg:DataGridTemplateColumn.CellTemplate>
    						<DataTemplate>
    							<Grid>
    								<Image Source="{Binding Picture}" Width="64" Height="64" Stretch="UniformToFill"/>
    							</Grid>
    						</DataTemplate>
    					</dg:DataGridTemplateColumn.CellTemplate>
    				</dg:DataGridTemplateColumn>
    				<dg:DataGridTextColumn Header="Name" Binding="{Binding MenuItemName}"/>
    				<dg:DataGridTextColumn Header="Price" Binding="{Binding MenuItemPrice}"/>
    				<dg:DataGridTextColumn Header="Thumbs Up" Binding="{Binding ThumbsUp}"/>
    				<dg:DataGridTextColumn Header="Thumbs Down" Binding="{Binding ThumbsDown}"/>
    				<dg:DataGridTextColumn Header="Description" Binding="{Binding MenuItemDescription}"/>
    			</dg:DataGrid.Columns>
    		</dg:DataGrid>
    	</Grid>
    </Grid>
</Window>
